package com.bestv.search.common.service;

import com.bestv.search.common.dataSource.DataSourceKey;
import com.bestv.search.common.model.SysRole;

import java.util.List;

public interface SysRoleManager {

    SysRole saveRole(DataSourceKey key, SysRole role);

    List<SysRole> getRoles(DataSourceKey key);

    SysRole getRoleByID(DataSourceKey key, Long id);

    SysRole getRolesByName(DataSourceKey key, String name);
}
